package com.ruoyi.system.domain;

import java.util.List;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 派工单主对象 l_exebill
 *
 * @author zyb
 * @date 2022-01-03
 */
@Data
public class LExebill extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "billid", type = IdType.AUTO)
    private Long billid;

    /** 单据编码 */
    @Excel(name = "单据编码")
    private String billcode;
    /** 订单号ID */
    @Excel(name = "订单号ID")
    private Long orderbillid;
    /** 单据日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date billdate;

    /** 司机ID */
    @Excel(name = "司机ID")
    private Long driverid;

    /** 车辆 */
    @Excel(name = "车辆")
    private Long tid;

    /** 开单人 */
    @Excel(name = "开单人")
    private Long empid;

    /** 区域 */
    @Excel(name = "区域")
    private Long areaid;

    /** 单据状态 */
    @Excel(name = "单据状态")
    private Integer billstate;

    /** 派工单明细信息 */
    private List<LExebilldetail> lExebilldetailList;

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("billid", billid)
                .append("billcode", billcode)
                .append("orderbillid", orderbillid)
                .append("billdate", billdate)
                .append("driverid", driverid)
                .append("tid", tid)
                .append("empid", empid)
                .append("areaid", areaid)
                .append("billstate", billstate)
                .append("lExebilldetailList", lExebilldetailList)
                .toString();
    }
}
